home *** CD-ROM | disk | FTP | other *** search
/ Rock County Sheriff's Off…nternet Safety Initative / Rock County Sher.iso / pc / css / styles / jPlayer.swf / scripts / happyworm / jPlayer / JplayerStatus.as < prev   
Encoding:
Text File  |  2012-09-13  |  2.7 KB  |  111 lines

  1. package happyworm.jPlayer
  2. {
  3.    public class JplayerStatus
  4.    {
  5.       public static const VERSION:String = "2.1.0";
  6.       
  7.       public var volume:Number = 0.5;
  8.       
  9.       public var muted:Boolean = false;
  10.       
  11.       public var src:String;
  12.       
  13.       public var srcError:Boolean;
  14.       
  15.       public var srcSet:Boolean;
  16.       
  17.       public var isPlaying:Boolean;
  18.       
  19.       public var isSeeking:Boolean;
  20.       
  21.       public var playOnLoad:Boolean;
  22.       
  23.       public var playOnSeek:Boolean;
  24.       
  25.       public var isStartingDownload:Boolean;
  26.       
  27.       public var isLoading:Boolean;
  28.       
  29.       public var isLoaded:Boolean;
  30.       
  31.       public var pausePosition:Number;
  32.       
  33.       public var seekPercent:Number;
  34.       
  35.       public var currentTime:Number;
  36.       
  37.       public var currentPercentRelative:Number;
  38.       
  39.       public var currentPercentAbsolute:Number;
  40.       
  41.       public var duration:Number;
  42.       
  43.       public var metaDataReady:Boolean;
  44.       
  45.       public var metaData:Object;
  46.       
  47.       public function JplayerStatus()
  48.       {
  49.          super();
  50.          this.reset();
  51.       }
  52.       
  53.       public function reset() : void
  54.       {
  55.          this.src = "";
  56.          this.srcError = false;
  57.          this.srcSet = false;
  58.          this.isPlaying = false;
  59.          this.isSeeking = false;
  60.          this.playOnLoad = false;
  61.          this.playOnSeek = false;
  62.          this.isStartingDownload = false;
  63.          this.isLoading = false;
  64.          this.isLoaded = false;
  65.          this.pausePosition = 0;
  66.          this.seekPercent = 0;
  67.          this.currentTime = 0;
  68.          this.currentPercentRelative = 0;
  69.          this.currentPercentAbsolute = 0;
  70.          this.duration = 0;
  71.          this.metaDataReady = false;
  72.          this.metaData = {};
  73.       }
  74.       
  75.       public function error() : void
  76.       {
  77.          var _loc1_:String = this.src;
  78.          this.reset();
  79.          this.src = _loc1_;
  80.          this.srcError = true;
  81.       }
  82.       
  83.       public function loadRequired() : Boolean
  84.       {
  85.          return this.srcSet && !this.isStartingDownload && !this.isLoading && !this.isLoaded;
  86.       }
  87.       
  88.       public function startingDownload() : void
  89.       {
  90.          this.isStartingDownload = true;
  91.          this.isLoading = false;
  92.          this.isLoaded = false;
  93.       }
  94.       
  95.       public function loading() : void
  96.       {
  97.          this.isStartingDownload = false;
  98.          this.isLoading = true;
  99.          this.isLoaded = false;
  100.       }
  101.       
  102.       public function loaded() : void
  103.       {
  104.          this.isStartingDownload = false;
  105.          this.isLoading = false;
  106.          this.isLoaded = true;
  107.       }
  108.    }
  109. }
  110.  
  111.